//计算表格高度，将分页定位,ch浏览器的高度-头部高度-padding-菜单高度-搜索框的高度-分页高度
var getHeight = function ($a, $b) {
	var ch = document.documentElement.clientHeight || document.body.clientHeight;
    var oHeight = ch - 50 - 41 - 20 - (parseInt($a.css("height")) || 20) - (parseInt($b.css("height")) || 0)
    return oHeight;
};
var resize = function (that,dom1=$(".search-content"),dom2=$(".paginationOne")) {
    that.$nextTick(function () {
        that.oHeight = getHeight(dom1, dom2);
    });
    window.onresize = function () {
        that.$nextTick(function () {
            that.oHeight = getHeight(dom1, dom2);
        })
    }
}
export {
    resize
}